package beanstao.util.type.base;

import java.sql.Timestamp;
import java.util.Calendar;

import beanstao.util.type.Castor;

public class Timestamp2Calendar extends Castor<Timestamp, Calendar>
{

	@Override
	public Calendar cast(Timestamp src, Class<?> toType, String... args)
	{
		Calendar c = Calendar.getInstance();
		c.setTimeInMillis(src.getTime());
		return c;
	}

}
